package com.twu.model;

/**
 * Created by Janu on 17/06/14.
 * Class: Movie.java
 * Methods: Constructors
 *          public void setMovAvailable()
 *          public void setMovNotAvailable()
 *          Getters for all parameters
 */

public class Movie {

    //Parameters
    private String movCode;
    private String movName;
    private int movYear;
    private String movDirector;
    private int movRating;
    private boolean movAvailability;
    private String movCheckedOutBy;

    //Constructors
    public Movie(){
        this.movCode = "";
        this.movName = "";
        this.movYear = 0;
        this.movDirector = "";
        this.movRating = 0;
        this.movAvailability = false;
        this.movCheckedOutBy = "";
    }

    public Movie(String movCode, String movName, int movYear, String movDirector, int movRating, boolean movAvailability){
        this.movCode = movCode;
        this.movName = movName;
        this.movYear = movYear;
        this.movDirector = movDirector;
        this.movRating = movRating;
        this.movAvailability = movAvailability;
        this.movCheckedOutBy = "";
    }

    public void setMovAvailable(){
        this.movAvailability = true;
    }

    public void setMovNotAvailable(){
        this.movAvailability = false;
    }

    //Getters
    public String getMovCode(){
        return this.movCode;
    }

    public String getMovName(){
        return this.movName;
    }

    public int getMovYear(){
        return this.movYear;
    }

    public String getMovDirector(){
        return this.movDirector;
    }

    public int getMovRating(){
        return this.movRating;
    }

    public boolean getMovAvailability(){
        return this.movAvailability;
    }

    public void setMovCheckedOutBy(String s){
        this.movCheckedOutBy = s;
    }

    public String getMovCheckedOutBy() {
        return this.movCheckedOutBy;
    }
}
